package org.kyw.user.mapper;

import org.kyw.basic.mapper.BaseMapper;
import org.kyw.user.domain.User;

/**
 *  数据库操作接口
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 根据手机号查询用户
     * @param phone
     * @return
     */
    User loadByPhone(String phone);

    /**
     * 根据LogininfoId查询用户
     * @param id
     * @return
     */
    User loadByLogininfoId(Long id);
}
